<HTML>
<HEAD>
<TITLE>JavaScript Source Code 3000:  Password Protection:  Multiple Users</TITLE>
<META HTTP-EQUIV="JavaScript Source Code 3000" CONTENT = "no-cache">
<META NAME="date" CONTENT="2000-09-09">
<META NAME="channel" CONTENT="Web Developer">
<META NAME="author" CONTENT="JavaScript Source Code 3000">
<META NAME="section" CONTENT="Password Protection">
<META NAME="description" CONTENT="Rather not have one password for access the Members-Only section of your site?  Well, along comes this little JavaScript gem.  You can set up a separate username and password for as many members as you want, and even give each a different page to go to after logging in!  ">

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="guest" && password=="login") {
window.location="multiple-users-source.html"; done=1;
}
if (done==0) { alert("Invalid login!"); }
}
// End -->
</SCRIPT>
</HEAD>

<BODY BGCOLOR=#ffffff vlink=#0000ff>

<BR>
<center>
<table width="600" cellpadding="0" cellspacing="10">
<tr>
<td width="468" align="center">

	
</td>
<td width="120" align="center">

	
</td>
</tr>
</table>
<BR>
<BR>
<BASEFONT SIZE=3>
  <FONT SIZE=6>
<B><FONT SIZE="+2" FACE="Helvetica,Arial" ALIGN=RIGHT COLOR="#0000FF">
<b><A HREF="../index.htm" /" TARGET="_top">
Home</A> </b><img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <b><A HREF="index.htm" /passwords/"><font color="#FF0000">Password Protection</font></A> </b>
<img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <FONT COLOR="#006666">Multiple Users</FONT></b></FONT><BR>
</B><BR>
  </FONT>
<TABLE BORDER=0 WIDTH=500 CELLPADDING=3 CELLSPACING=0>
<tr><td><font FACE=" helvetica,arial,geneva">
<br>
<br>
<!-- Description --><!--content_start-->

Rather not have one password for access the Members-Only section of your site?  Well, along comes this little JavaScript gem.  You can set up a separate username and password for as many members as you want, and even give each a different page to go to after logging in!<br><hr>
<br>
<center>
<table bgcolor=#ffe9bf cellpadding=3 border=1>
<tr>
<td colspan=2 align=center><font face="verdana, arial" size="-1">To login:</font></td></tr>
<tr>
<td><font face="verdana, arial" size="-1">Username:</font></td>
<td><font face="verdana, arial" size="-1">guest</font></td>
</tr>
<td><font face="verdana, arial" size="-1">Password:</font></td>
<td><font face="verdana, arial" size="-1">login</font></td>
</tr>
</table>
<br><hr>

</td></tr>
</table>
<!--  Demonstration  -->
<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size="+2"><b>Members-Only Area!</b></font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value="Login!" onClick="Login()"></td></tr>
</table>
</form>
</center>
<P>
<BR>
<P>

	

<P>


</CENTER>